package com.design.design.pattern.behavioral.responsibilitychain;

public class Test {
    public static void main(String[] args) {
        ArticleHandler articleHandler = new ArticleHandler();
        VideoHandler videoHandler = new VideoHandler();

        Course course = new Course();
        course.setName("tom");
        course.setArticle("《memory analysis》article");
        course.setVideo("《memory analysis》videos");

        articleHandler.setNextHandler(videoHandler);
        articleHandler.deploy(course);
    }
}
